home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / vedt.zip / DEMO6.VDM < prev    next >
Text File  |  1990-05-18  |  7KB  |  207 lines

  1. RI(9)/VEDIT and VEDIT PLUS - Multiple File Editing/
  2. M(H)            !Display header
  3.  
  4. YT\
  5. With VEDIT and VEDIT PLUS you can easily edit two, three or more files at the
  6. same time.  Each file can be of any size and can optionally be displayed in its
  7. own window.  You can also display different parts of one file in separate
  8. windows.
  9.  
  10. Although you can select additional files to edit using the {FILE} sub-menu
  11. and split the screen into windows with the {WINDOW} sub-menu, several
  12. built-in keystroke macros simplify these processes.
  13.  
  14. <ALT-O> Prompts you for the next file to edit and automatically selects an
  15.     unused edit buffer in which to simultaneously edit this file.
  16.  
  17. <ALT-Y> Same as <ALT-O> except it also splits the current window into two
  18.     horizontal windows.
  19.  
  20. <ALT-T> Toggles between the files/windows created with <ALT-O> or <ALT-Y>.
  21.  
  22. \
  23.  
  24. M(K)
  25.  
  26. YWI YWB(1) 7        !Init screen, setup 2 windows...
  27. Q26YEA            !Set editing attribute
  28. YWS(1) Q27YEA        !Set attribute in lower window "1"
  29.  
  30. EZY
  31. EB demo.txt
  32.  
  33. EE(1)
  34. B#K
  35. I/Many times you simply want to edit a new file after saving the current file,
  36. i.e. you don't need to simultaneously edit the two files.  You can edit a new
  37. file by pressing <ALT-N>.  For example, you are currently editing the file
  38. "DEMO.TXT".  To save this file and begin editing the file DEMO2.TXT press
  39. <ALT-N> and at the filename prompt enter "DEMO2.TXT".  If you modified
  40. DEMO.TXT, you will be prompted whether to save or abandon this file.
  41.             --- Press <ESC> to continue ---/
  42.  
  43. B -V            !Display instruction text
  44. EE(@)            !Switch to main edit buffer
  45. V
  46.  
  47. EE(1)
  48. B#K
  49. I/If you are not exactly sure of the filename you can use VEDIT's "point and 
  50. shoot" file selection.  When prompted for a filename simply press <Enter> to 
  51. see all files in the current directory or enter a "filter" such as "*.txt" to 
  52. select only the files ending in ".TXT".
  53.      Experiment with the "point and shoot" by pressing <ALT-N> again to select 
  54. a new file to edit.  Note the "help" line on the bottom of the screen during 
  55. point and shoot.        --- Press <ESC> to continue ---/
  56.  
  57. B -V            !Display instruction text
  58. EE(@)            !Switch to main edit buffer
  59. V
  60.  
  61. EZY
  62. EB demo.txt
  63. EE(1)
  64. B#K
  65. I/You are again editing the single file "DEMO.TXT".  To simultaneously edit
  66. a second file press <ALT-O>.  At the prompt enter the name of the file to
  67. edit.  For example, enter "DEMO2.TXT" and press <Enter>.
  68.  
  69. You are now editing the file DEMO2.TXT.  The letter "A" in the top-left of the
  70. status line indicates that this file is being edited in buffer "A".
  71.             --- Press <ESC> to continue ---/
  72.  
  73. B -V
  74. EE(@)
  75. V
  76.  
  77. .bnXS(97)        !Save edit buffer #
  78. EE(1)
  79. B#K
  80. I/Press <ALT-T> to toggle between the files being simultaneously edited.
  81. Notice how the name of the active file is displayed on the status line.
  82.  
  83. (This demo uses buffer "1" to display the instructions; therefore <ALT-T>
  84. also toggles to this text.  Normally, when you aren't running this demo,
  85. just the current file being edited would be displayed on the screen.)
  86.             --- Press <ESC> to continue ---/
  87.  
  88. B -V
  89. EE#97
  90. V
  91.  
  92. .bnXS(97)        !Save edit buffer #
  93. EE(1)
  94. B#K
  95. I/It is usually easiest to switch between files by repeatedly pressing <ALT-T>.
  96. However, if you know the name of its corresponding buffer, you can switch
  97. directly to a file by pressing <F4> and its buffer name.  Press <F4> and "A"
  98. to switch to buffer A; press <F4> and <Enter> to switch to the main buffer.
  99.  
  100. Feel free to experiment.  An additional (third) file you can simultaneously
  101. edit is "DEMO8.TXT".        --- Press <ESC> to continue ---/
  102.  
  103. B -V
  104. EE#97
  105. V
  106.  
  107. EE(C) EQY        !Empty buffers C, B and A
  108. EE(B) EQY
  109. EE(A) EQY
  110. EE(@) EZY        !Empty main buffer
  111. EB demo.txt        !Load demo file again
  112. EE(1)
  113. B#K
  114. I/You are again editing the single file "DEMO.TXT".  To simultaneously edit a
  115. second file, but also display it in its own window press <ALT-Y>.  At the
  116. prompt enter the name of the file to edit.  For example, enter "DEMO2.TXT".
  117.  
  118. Notice how the screen has been split in half and that the status line
  119. indicates you are editing "DEMO2.TXT".
  120.             --- Press <ESC> to continue ---/
  121.  
  122. B -V
  123. EE(@)
  124. V
  125.  
  126. .bnXS(97)        !Save edit buffer #
  127. EE(1)
  128. B#K
  129. I/Press <ALT-T> to again toggle between the files being simultaneously edited.
  130. This time, however, you are also toggled from one window to another.  Notice
  131. how the "WINDOW" message in the active window is highlighted.  Normally, the
  132. cursor will be blinking in the active window.
  133.  
  134. Feel free to experiment.
  135.            --- Press <ESC> to continue ---/
  136. B -V
  137. EE#97
  138. V
  139.  
  140. EE(1)
  141. B#K
  142. I/With a mouse, you can easily switch between windows by moving the mouse
  143. anywhere within the desired window and clicking the left button.
  144.  
  145. When you click the left button in a non-active window, VEDIT switches to
  146. that window.  When you click the left button in the active window, VEDIT
  147. moves the editing cursor to the position of the mouse cursor.
  148.         --- Press <ESC> to continue ---/
  149. B -V
  150. EE(@)
  151. V
  152.  
  153.  
  154.  
  155. EE(1)
  156. B#K
  157. I/To help remind you which files are being edited, enter the {HELP} sub-menu
  158. (<ALT-H>) and select "Edit Buffers".  This displays the name of each file with
  159. its associated window and "buffer" name. (Buffers 1 & Z are used by the demo.)
  160.  
  161. You can use <ALT-T>, <F4> or {FILE, Buffer Switch} to switch between files.
  162. <F4> is a "hot key" (keystroke macro) for the function {FILE, Buffer Switch}.
  163.             --- Press <ESC> to continue ---/
  164.  
  165. B -V
  166. EE(@)
  167. V
  168.  
  169. YWI YWB(1) 8        !Init screen, setup 2 windows...
  170. Q26YEA            !Set editing attribute
  171. YWS(1) Q27YEA        !Set attribute in lower window "1"
  172. EE(A) EQY
  173. EE(B) EQY
  174. EE(C) EQY
  175.  
  176. B#K
  177. ER demo.txt 0A        !Load demo file again
  178. EE(1)
  179. B#K
  180. I/You are again editing the single file "DEMO.TXT".  To display the file in two
  181. vertical windows press <ALT-V>.  Press <PgDn> a few times.  Notice how only
  182. the current window scrolled down.  You can view different parts of a file at
  183. the same time.
  184.  
  185. Press <PgUp> again until both windows show the same text.  Make some edit
  186. changes.  Notice how both windows update at the same time.
  187.         --- Press <ESC> to continue ---/
  188.  
  189. B -V
  190. EE(@)
  191. V
  192.  
  193. EE(1)
  194. B#K
  195. I/Press <PgDn> again a few times.  Now press <ALT-F4>.  At the prompt press
  196. "0".  Notice how this has switched you to the other window on the same file.
  197. You can, of course, edit in this window too.
  198.  
  199. Press <ALT-F4> and then just <Enter> to switch back to the default "@" window.
  200. <ALT-F4> is just a "hot key" (keystroke macro) for {WINDOW, Switch}.  You can
  201. press <ALT-F4> or use the {WINDOW} sub-menu to switch windows.
  202.         --- Press <ESC> to return to the Main Menu ---/
  203.  
  204. B -V
  205. EE(@)
  206. V
  207.